﻿using HeyPiPi_Desk.Models;
using Microsoft.Practices.Prism.ViewModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HeyPiPi_Desk.Domain
{
    public class HomeViewModel : NotificationObject
    {

        private ObservableCollection<ServiceAppointmentModel> _quickAppointServices;

        /// <summary>
        /// 快捷预约提示通知模型
        /// </summary>
        public ObservableCollection<ServiceAppointmentModel> QuickAppointServices
        {
            get { return _quickAppointServices; }
            set { _quickAppointServices = value; this.RaisePropertyChanged(() => this.QuickAppointServices); }
        }
        public HomeViewModel()
        {
            this.QuickAppointServices = new ObservableCollection<ServiceAppointmentModel>();
            for (int i = 0; i < 10; i++)
            {
                ServiceAppointmentModel m = new ServiceAppointmentModel();
                m.AppointTime = DateTime.Now;
                m.Assistanter = "方同学";
                m.Customer = "李小姐";
                m.ServiceName = "宠物美容";

                this.QuickAppointServices.Add(m);
            }
        }

    }
}
